import request from '@/uilts/request'
// 图片验证码
export const UserVerificationRequest = (clientToken) => {
  return request({
    url: `/api/user-service/user/imageCode/${clientToken}`
  })
}
// 登录接口
export const UserLoginRequest = ({ loginName, password, code, clientToken, loginType }) => {
  return request({
    url: '/api/user-service/user/login',
    method: 'POST',
    data: {
      loginName,
      password,
      code,
      clientToken,
      loginType
    }
  })
}
// 获取用户基本信息
export const UserBasicInformationRequest = (id) => {
  return request({
    url: `/api/user-service/user/${id}`
  })
}
